package com.hmdp.aonce;

import com.hmdp.service.impl.ShopServiceImpl;
import org.springframework.data.redis.core.StringRedisTemplate;

import javax.annotation.Resource;

public class cacheT {
    @Resource
    private ShopServiceImpl shopService;

    public static void main(String[] args) {
        StringRedisTemplate stringRedisTemplate = new StringRedisTemplate();
        ShopServiceImpl shopService = new ShopServiceImpl( stringRedisTemplate);
        shopService.saveShopRedis(5L,10L);
    }
}
